package com.homedo.microservice.open.service.gateway.manager.web.api;

import com.homedo.common.bean.data.RequestData;
import com.homedo.common.bean.data.ResponseData;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteServiceAddAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteServicePageAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.req.RouteServiceUpdateAReq;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.RouteServiceAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.bean.model.resp.RouteServicePageAResp;
import com.homedo.microservice.open.service.gateway.manager.web.api.constant.RemoteService4OpenServiceGatewayManagerWebServiceConstant;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping(RemoteService4OpenServiceGatewayManagerWebServiceConstant.SERVICE_ID + "/routeService")
public interface IRouteServiceServiceRemote {

    @GetMapping(value = "list")
    ResponseData<RouteServicePageAResp> list(RouteServicePageAReq routeServicePageAReq);

    @GetMapping(value = "detail/{id}")
    ResponseData<RouteServiceAResp> detail(String id);

    @PostMapping(value = "update")
    ResponseData update(RequestData<RouteServiceUpdateAReq> requestData);

    @PostMapping(value = "add")
    ResponseData<RouteServiceAResp> add(RequestData<RouteServiceAddAReq> requestData);

    @GetMapping(value = "delete/{id}")
    ResponseData delete(String id);

}
